package com.knowledge.graph.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description: 课程和教师的对应关系
 * @author jiwenlong
 * @date 2023/11/8 19:40
 * @version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("course_and_user")
public class CourseAndUser {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Long courseId;

    private Long userId;

    public CourseAndUser(Long courseId, Long userId) {
        this.courseId = courseId;
        this.userId = userId;
    }

}
